﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;

namespace TyMES.Model.Record
{
    /// <summary>
    /// 托盘虚拟SN绑定
    /// </summary>
	[Table("TrayBindVSN")]

    [Display(Name = "_Model.TrayBindVSN")]
    public class TrayBindVSN : BasePoco
    {
        [Display(Name = "_Model._TrayBindVSN._TrayCode")]
        [Comment("托盘编码")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string TrayCode { get; set; }
        [Display(Name = "_Model._TrayBindVSN._VSN")]
        [Comment("虚拟sn")]
        [Required(ErrorMessage = "Validate.{0}required")]
        public string VSN { get; set; }
        [Display(Name = "_Model._TrayBindVSN._orderCode")]
        [Comment("工单号")]
        public string OrderCode { get; set; }
        [Display(Name = "_Model._TrayBindVSN._lineCode")]
        [Comment("所属产线编码")]
        public string LineCode { get; set; }
        [Display(Name = "_Model._TrayBindVSN._TrayStation")]
        [Comment("当前工位")]
        public string TrayStation { get; set; }
        [Display(Name = "_Model._TrayBindVSN._OnLineStation")]
        [Comment("上线工位")]
        public string OnLineStation { get; set; }
        [Display(Name = "_Model._TrayBindVSN._OffLineStation")]
        [Comment("下线工位")]
        public string OffLineStation { get; set; }
        [Display(Name = "_Model._TrayBindVSN._BindStatus")]
        [Comment("托盘VSN绑定状态")]
        public TrayBindStatusEnum? BindStatus { get; set; }
        [Display(Name = "_Model._TrayBindVSN._increaseCode")]
        [Comment("流水号")]
        public int? IncreaseCode { get; set; }
        [Display(Name = "_Model._TrayBindVSN._uploadflag")]
        [Comment("上传标识")]
        public bool? Uploadflag { get; set; }
        [Display(Name = "_Model._TrayBindVSN._scheduleCode")]
        [Comment("排程号")]
        public string ScheduleCode { get; set; }

	}

}
